﻿@{
    Layout = null;
}

<!DOCTYPE>
<html>
@{
    var n = Session["ID"].ToString();
}
<head>
    <title>借款详情_诚信创投</title>
    <meta charset="utf-8">

    <script src="~/Content/Js/Command.js"></script>
    <meta name="keywords" content="诚信创投,P2P理财,P2P网贷,个人理财,网贷平台" />
    <meta name="description" content="" />
    <meta name="description" content="诚信创投成立于2009年3月，是中国领先的P2P网贷平台，是P2P网贷行业的领跑者。诚信创投以稳健的风控和专业的团队，为投资者提供预期预期年化收益8%-12%的P2P理财服务。已经为100多万注册用户提供了P2P网贷、P2P理财、个人理财等服务项目。" />
    <meta name="baidu-site-verification" content="O8ybvhvPLB" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script type="text/javascript" src="~/_files/jquery-1.8.3.min.js"> </script>
    <script type="text/javascript" src="~/_files/jquery.validate.min.js"> </script>
    <script type="text/javascript" src="~/Content/ReceptionView/scripts/legacy/JqueryJson.js"></script>
    <script type="text/javascript" src="~/_files/com.js?t=201412"></script>
    <script type="text/javascript" src="~/_files/jQuery.md5.js"></script>
    <script type="text/javascript" src="~/_files/area.js"></script>
    <script type="text/javascript" src="~/_files/ceng.js?t=201412"></script>
    <script type="text/javascript" src="~/_files/hongling-validate-methods.js"></script>
    <link type="text/css" rel="stylesheet" href="https://style.my089.com/pc/themes/base.css?t=20170104">
    <link type="text/css" rel="stylesheet" href="https://style.my089.com/pc/themes/ceng.css?t=20170104">
    <script type="text/javascript" src="~/_files/jPages.min.js"></script>
    <script type="text/javascript" src="~/_files/util.js"></script>
    <link rel="stylesheet" type="text/css" href="https://style.my089.com/pc/themes/util.css" />
    <script type="text/javascript" src="~/Content/ReceptionView/scripts/common/jquery-jtemplates.js"></script>
    <!--[if lte IE 6]>
    <script src="/scripts/legacy/xiala.js" type="text/javascript"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="https://style.my089.com/pc/themes/Loan.css?t=20160104">
</head>
<body>
    <div class="header">
        <div class="headcont">
            <div class="page">
                <ul class="ul_rt rt">
                    <li class="jr_shop"><a href="#" rel="nofollow"><strong>本标<b>●</b>金融超市<span class="jr_ioc"></span></strong></a></li>
                    <li><a target="_blank" href="#" rel="nofollow">手机App </a></li>
                    <li><a href="#" rel="nofollow">新人指南</a></li>
                    <li style="*position: relative; *z-index: 200;" class="my089 menu-item">
                        <div class="menu">
                            <a class="menu-hd" rel="nofollow">快捷操作<b></b></a>
                            <div class="menu-bd toubiao">
                                <div class="menu-bd-panel">
                                    <ul>
                                        <li><a href="https://www.my089.com/help/interestCalculator">利息计算器</a></li>
                                        <li><a href="https://www.my089.com/help/costCalculator">借款计算器</a></li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li class="last"><a rel="nofollow" href="/MyAccount/View_UserLogin">会员登录</a></li>
                </ul>
                <div class="clear"></div>
            </div>
            <div class="clear"></div>
            <h1 class=""><a href="#"><span> 诚信创投电子商务股份有限公司</span></a></h1>
            <ul class="meun_lf rt">
                <li><a href="/Home/Index">诚信首页</a></li>
                <li><a href="#" class="meu_4">我要投资</a></li>
                <li><a href="#" class="meu_5">我要借款</a></li>
                <li><a href="#" class="meu_7">我要乐购</a></li>
                <li class="RegMeun"><a href="#" rel="nofollow">免费注册</a></li>
                <li class="SepLink"></li>
                <li><a href="#" rel="nofollow">信息披露</a></li>
                <li><a href="#" class="meu_3">诚信社区</a></li>
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    <div class="content" id="hongman">
        <input type="hidden" id="remainTimeSeconds" name="remainTimeSeconds" value="0">
        <input type="hidden" id="currentLoginUser" name="currentLoginUser" value="">
        <div class="Bid_war_box">
            <div class="Bid_lf lf">
                <div id="Usert">

                </div>
               <script>
                   $(function () {
                       User_show(@n)
                   })
                   function User_show(i)
                   {
                       $.ajax({
                           type: "post",
                           url: "/MemLoan/User_Only",
                           data: {
                               ID:i
                           },
                           success: function (da) {
                               var arr = new Array();
                               arr.push(" <dl>");
                               arr.push("<dt class='pic_tou'><img src='https://img.my089.com/img/show/00000000-0000-0000-0000-000000000000' alt='用户头像'></dt>");
                               arr.push(" <dd><span class='lf'>会员等级：</span><span class='lf' style='margin-top: 3px;'>" + da.MemlevelName + "</span></dd>");
                               arr.push("<dd><span>用&nbsp;&nbsp;户&nbsp;名：</span><span><a target='_blank'>" + da.UserName + "</a></span></dd>");
                               arr.push("  <dd><span>居住城市：</span><span>" + da.UserrAddres + "</span></dd>");
                               arr.push("<dd><div id='Indiv'></div></dd>");
                               arr.push("<dd>");
                               arr.push(" <span class='lf'>认证信息：</span>");
                               arr.push("<span class='lf' style='width: 100px;'>");
                               arr.push("  <div title='已实名认证' class='icon Identity'></div>");
                               arr.push("  <div title='VIP用户' class='icon VIP'></div>");
                               arr.push(" </span>");
                               arr.push(" </dd>");
                               arr.push(" </dl>");
                               $("#Usert").html(arr.join(""));
                               $.ajax({
                                   type: "post",
                                   url: "/MemLoan/Integral_Only",
                                   data: {
                                       ID:i
                                   }, success: function (de) {
                                       var n = new Array();
                                       n.push(" <dd><span>借出信用：</span><span>" + de.LendIntegral + "分</span></dd>");
                                       n.push("<dd><span>借入信用：</span><span>" + de.InComeIntegral + "分</span></dd>");
                                       $("#Indiv").html(n.join(""));
                                   }
                               })
                           }
                       })
                   }
               </script>
                <div class="clear"></div>
            </div>
            <div class="Bid_rt lf" id="MemLoand">
            </div>
            <div class="clear"></div>
        </div>
        <div class=" height"></div>
        <div class="Bid_cont">
            <div id="TabbedPanels1" class="TabbedPanels">
                <ul id="tabList" class="TabbedPanelsTabGroup">
                    <li onclick="tabClick(1)" class="TabbedPanelsTab TabbedPanelsTabSelected" tabindex="2"><span>借款信息</span></li>
                    <li onclick="tabClick(2)" class="TabbedPanelsTab" tabindex="3"><span>投标记录</span></li>
                    <li onclick="tabClick(3)" class="TabbedPanelsTab" tabindex="6"><span>账户详情</span></li>
                    <li onclick="tabClick(4)" class="TabbedPanelsTab" tabindex="7"><span>资料审核</span></li>
                    <li onclick="tabClick(5)" class="TabbedPanelsTab last" tabindex="8"><span>待还记录</span></li>

                </ul>
                <div class="TabbedPanelsContentGroup">
                    <!--借款详情-->
                    <div style="display: block;" id="subject" class="textbox TabbedPanelsContentVisible">
                        <script>
                            $(function () {
                                subject_Click(@n);
                            })
                        </script>
                    </div>
                    <!--投标记录-->
                    <div style="display: none;" id="tabBidList" class="Bid_Record" isreload="1">

                    </div>
                    <!--账户详情-->
                    <div style="display: none;" id="tabAcc" class="Account_Detail" isreload="3">
                        <div id="Account_on1">

                        </div>
                        <div id="Account_on2">

                        </div>
                        <div class="clear"></div>
                    </div>

                    <!--资料审核-->
                    <div style="display: none;" id="tabRecord" class="dh_Record" isreload="4">
                        <table cellspacing="0" border="0" class="bid_table" id="record_table">
                            <thead>
                                <tr>
                                    <th style="width: 200px">资料类型</th>


                                    <th style="width: 80px">状态</th>
                                </tr>

                            </thead>
                            <tbody>
                                <tr id="nodata" style="display: none;"><td colspan="4">当前没有认证资料信息。</td></tr>

                            </tbody>
                        </table>
                    </div>
                    <div style="display: none;" id="tabAudit" class="Audit" isreload="5">
                        <table cellspacing="0" border="0" class="bid_table" id="repay_table">
                            <thead>
                                <tr>
                                   
                                    <th style="width: 5%;">期数</th>
                                    <th style="width: 12%;">还款金额</th>
                                    <th style="width: 15%;">实际到期日期</th>
                                    <th style="width: 15%;">还款状态</th>
                                </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                    </div>

                </div>
            </div>
            <!--TabbedPanels END-->
        </div>
        <input type="hidden" id="hdnUID" name="hdnUID" value="A1DDDCB342A12BDD">
        <input type="hidden" id="sid" name="sid" value="16112513-5512-2259-3731-120001835067">
        <input type="hidden" id="userID" name="userID" value="3730565">
        <input type="hidden" id="subjectStatus" name="subjectStatus" value="6">
        <div class="B_top"><a href="#"></a></div>
        <div class="clear"></div>

        <script type="text/javascript">
            $(function () {
                Page(@n);
            })
            function Page(ID) {
                $.ajax({
                    url: "/MemLoan/Show_About",
                    type: "post",
                    data: {
                        id: ID
                    },
                    success: function (da) {
                        if (da != "") {
                            var arr = new Array();
                            arr.push("<div class='sub_s6'></div>");
                            arr.push("<div class='Dotted_1'>");
                            arr.push("<a target='_blank' href='/help/limitCategory'>");
                            arr.push("<b class='SubL60' title='推荐标，点击查看借款类型说明'>");
                            arr.push("</b></a>");
                            arr.push("<span class='bt_txt'>");
                            arr.push("" + da.Title + "");
                            arr.push("</span>");
                            arr.push("<div class='clear'></div>");
                            arr.push("</div>");
                            arr.push("<div class='biao_info'>");
                            arr.push("<ul>");
                            arr.push("<li class='jine'><span class='sp_1'>借款金额：");
                            arr.push("</span><span><b class='font_22 font_bold bule'>");
                            arr.push("￥" + da.LoanMoney + "");
                            arr.push("</b></span></li>");
                            arr.push("<li style='width: 320px;'>");
                            arr.push("<span class='sp_1'>借款利率：");
                            arr.push("</span><span><b class='number'>");
                            arr.push("" + da.Annualrate + "%/年");
                            arr.push("</b></span></li>");
                            arr.push("<li><span class='sp_1'>借款期限：");
                            arr.push("</span><span><b class='number'>");
                            arr.push("" + da.LoanTerm + "个月");
                            arr.push("</b></span></li>");
                            arr.push("<li style='width: 320px;'><span class='sp_1'>还款方式：");
                            arr.push("</span><span>" + da.RepaymentModeId + "");
                            arr.push("</span></li>");
                            arr.push("<li style='width: 400px;'><span class='sp_1'>可投范围：");
                            arr.push("</span><span><b class='number'>￥ 50.00 ~ ￥5,000.00元</span></li> </ul>");
                            arr.push("<div class='clear'></div>");
                            arr.push("</div>");
                            arr.push("<div class='Loading'>");
                            arr.push("<p class='Load lf'><em style='width:100%;'></em></p>");
                            arr.push("<span class='lf'>100%</span>");
                            arr.push("</div>");
                            arr.push("<div class='clear'></div>");
                            arr.push("<p class='time'>");
                            arr.push("<span>已投标：");
                            arr.push("" + da.TotalTransactions + "笔</span>");
                            arr.push("<span>还需：￥" + (da.LoanMoney - da.AlreadyRaiseLoan) + "元");
                            arr.push("</span>");
                            arr.push("<span>剩余时间：");
                            arr.push("已结束</span>");
                            arr.push("</p><p>");
                            arr.push("<a class='Bid_but_no font_14' href='#' title='该标当前状态不是正在招标中，不能投标.'>待还款</a>");
                            arr.push("</p>");

                        }
                        $("#MemLoand").html(arr.join(""));

                    }

                })
            }

        </script>
    </div>
    <div class="foot">
        <div class="footer">
            <div class="BotLink">
                <p><span>© 2009-2016 诚信创投 All rights reserved</span>|<span>诚信创投电子商务股份有限公司</span>|<span>粤ICP备10234900号</span>|<span><a href="https://style.my089.com/pc/resources/2013/sp2013.jpg" target="_blank">增值电信业务经营许可证粤B2-20130472</a></span></p>

            </div>
            @*<div style="display:none">
                    <script type="text/javascript">
                        var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
                        document.write(unescape("%3Cspan id='cnzz_stat_icon_1419416'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s19.cnzz.com/stat.php%3Fid%3D1419416' type='text/javascript'%3E%3C/script%3E"));
                    </script>
                </div>*@
        </div>
    </div>

</body>
</html>
<script>
    function tabClick(i) {

        $("#tabBidList").show();
        if (i == 1) {
            subject_Click(@n)
        } else
            if (i == 2) {
                MemInvest_One(@n)
            } else if (i == 3) {
                tabAcc_User(@n)
            } else if (i == 4) {
                tabRecord_Click(@n)
            } else if (i == 5) {
                tabAudit_Click(@n)
            }
    }
    function subject_Click(i) {
        $("#tabAcc").hide();
        $("#tabRecord").hide();
        $("#tabAudit").hide();
        $("#tabBidList").hide();

        $("#subject").show();
        $.ajax({
            url: "/MemLoan/Show_About",
            type: "post",
            data: {
                id: i
            },
            success: function (da) {
                var arr = new Array();
                if (da != "") {
                    arr.push("<p>借 款 详 情：");
                    arr.push("" + da.Title + "");
                    arr.push("<br />还 款 方 式：");
                    arr.push("" + da.RepaymentModeId + "");
                }
                $("#subject").html(arr.join(""));
            }
        })
    }
    function MemInvest_One(ID) {
        $("#subject").hide();
        $("#tabAcc").hide();
        $("#tabRecord").hide();
        $("#tabAudit").hide();
        $("#tabBidList").show();
        $.ajax({
            type: "post",
            url: "/MemLoan/MemInvest_Only",
            data: {
                MemLoanId: ID
            },
            success: function (das) {
                var er = new Array();
                er.push("<table id='bid_table' cellspacing='0' border='0' class='bid_table'>");
                er.push("<tr>");
                er.push("<th>序号</th><th>投标人</th><th>投标金额</th><th>投标时间</th></tr>");
                if (das != "") {
                    for (var i = 0; i < das.length; i++) {

                        er.push("<tr>");
                        er.push("<th>" + das[i].MemInvestId + "</th><th>" + das[i].UserName + "</th><th>" + das[i].InvestMoney + "</th><th>" + ChangeDateFormat(das[i].InvestTime) + "</th>")
                        er.push("</tr>");

                    }
                    er.push("</table>");
                   
                } else {
                    er.push("<tr>");
                    er.push("<th colspan='4'>测试环节抱歉</th>");
                    er.push("</tr>");
                }
                $("#tabBidList").html(er.join(""));
               
            }
        })
    }
    function tabAcc_User(i) {
    
        $("#subject").hide();
        $("#tabRecord").hide();
        $("#tabAudit").hide();
        $("#tabBidList").hide();
        $("#tabAcc").show();
        $.ajax({
            type: "post",
            url: "/MemLoan/MemIncon_Only",
            data: {
                ID: i
            },
            success: function (da) {
                var arr = new Array();
                arr.push("<ul><li class='Account_bt'>")
                arr.push("<b>投资详情</b></li>")
                arr.push("<li><span title='累计的投资总额'></span>");
                arr.push("投资总额：￥" + da.InvestmentSum + "");
                arr.push("</li>");
                arr.push("<li><span title='待收利息'></span>");
                arr.push("待收利息：￥" + da.CollectInterest + "");
                arr.push("</li>");
                arr.push("<li><span title='待收总额'></span>");
                arr.push("待收总额：￥" + da.CollectTotal + "");
                arr.push("</li>");
                arr.push("</ul>");
                $("#Account_on1").html(arr.join(""));
                var p = new Array();
                $.ajax({
                    type: "post",
                    url: "/MemLoan/Show_About",
                    data: {
                        ID: i
                    },
                    success: function (de) {
                        p.push("<ul><li class='Account_bt'>")
                        p.push("<b>借款详情</b></li>")
                        p.push("<li><span title='借款金额'></span>");
                        p.push("借款总额：￥" + de.LoanMoney + "");
                        p.push("</li>");
                        p.push("<li><span title='代付利息'></span>");
                        p.push("代付利息：￥" + de.PayInterest + "");
                        p.push("</li>");
                        p.push("<li><span title='还款总额'></span>");
                        p.push("还款总额：￥" + de.RepaySumMoney + "");
                        p.push("</li>");
                        p.push("</ul>");
                        $("#Account_on2").html(p.join(""))
                    }
                })
            }
        })

    }
    function tabRecord_Click(i) {
       
        $("#tabAcc").hide();
        $("#subject").hide();
        $("#tabAudit").hide();
        $("#tabBidList").hide();
        $("#tabRecord").show();
        $.ajax({
            type: "post",
            url: "/MemLoan/Authonym_Only",
            data: {
                ID: i
            },
            success: function (da) {
                var arr = new Array();
                if (da.RealNameState == true) {
                    arr.push("<tr><th>本人身份证</th><th>已认证</th></th>");
                    
                } else
                {
                    arr.push("<tr><th>暂时无认证</th></th>");
                }
                $("#record_table tbody").html(arr.join(""));
            }
        })

    }
    function tabAudit_Click(i) {
        $("#tabAcc").hide();
        $("#subject").hide();
        $("#tabBidList").hide();
        $("#tabRecord").hide();
        $("#tabAudit").show();
        $.ajax({
            type: "post",
            url: "/MemLoan/Rep_about",
            data: {
                ID: i
            },
            success: function (de) {
                var p = new Array();
                if (de != "") {
                    for (var i = 0; i < de.length; i++) {
                        p.push("<tr>")
                        p.push(" <th style='width: 5%;'>" + de[i].SumDay + "</th>");
                        p.push(" <th style='width: 12%;'>" + de[i].RepaymentMoney + "</th>");
                        p.push(" <th style='width: 12%;'>" + ChangeDateFormat(de[i].P_RepaymentTime) + "</th>");
                        p.push(" <th style='width: 12%;'>" + de[i].PaymentState + "</th>");
                        p.push("</tr>");
                    }

                } else {
                    p.push("<tr><th>测试</th></tr>");
                }

                $("#tabAudit tbody").html(p.join(""))
            }
        })

    }
</script>